package teacher.action.flow;

import java.util.List;

import teacher.bean.Flow;
import teacher.service.flow;

import com.opensymphony.xwork2.ActionSupport;

public class flowTre extends ActionSupport{

	private static final long serialVersionUID = 1L;
	private int treatiseId;
	private List<Flow> flow;

	public List<Flow> getFlow() {
		return flow;
	}

	public void setFlow(List<Flow> flow) {
		this.flow = flow;
	}

	public int getTreatiseId() {
		return treatiseId;
	}

	public void setTreatiseId(int treatiseId) {
		this.treatiseId = treatiseId;
	}

	public String execute() throws Exception{
		
		flow = new flow().selectFlowById(treatiseId, 2); 
		
		return SUCCESS;
	}

}
